<include file="Public:header" />
<!-- MAIN CONTENT start -->
<div class="span3">
    <div class="well" style="padding: 8px 0;">
        <ul class="nav nav-list">
            <li class="nav-header">
                个人信息
            </li>
            <li>
                <i class="icon-time"></i>名次：{$solution.rangking}
            </li>
            <li class="divider">
            </li>
            <li>
                <a href="{:U('/Status/index/',array('user_id'=>$user['user_id'],'result'=>4))}">
                    <i class="icon-check"></i>解决：{$solution.ac_num}
                </a>

            </li>
            <li>
                <a href="{:U('/Status/index/',array('user_id'=>$user['user_id']))}">
                    <i class="icon-list-alt"></i>提交：{$solution.sub_num}
                </a>
                <ul class="nav nav-list">
                    <foreach name="solution.solution_info" item="v_so">
                        <li>
                            <i class="icon-flag"></i>{$v_so.name}：{$v_so.num}
                        </li>
                    </foreach>
                </ul>
            </li>
            <li class="divider">
            </li>
            <li>
                <i class="icon-folder-open"></i>学校：{$info.school}
            </li>
            <li class="active">
                <i class="icon-ok"></i>邮箱：{$info.email}
            </li>
            <li class="divider">
            </li>
            <li>
                <a href="#">
                    <i class="icon-comment"></i>论坛
                </a>
            </li>
            <li>
                <a href="#">
                    <i class="icon-comment"></i>数据统计
                </a>
            </li>
        </ul>
    </div>
</div>
<div class="span9">
    <h3>
        Edit Your Profile
    </h3>
    <form id="edit-profile" class="form-horizontal" method="post" action="{:U('User/editInfo')}" url="{:U('User/checkOldPass')}">
        <fieldset>
            <legend>User ID:{$info.user_id}</legend>
            <div class="control-group">
                <label class="control-label" for="input01">Nick Name</label>
                <div class="controls">
                    <input type="text" class="input-xlarge" id="input01" value="{$info.nick}"  name="nick_name"/>
                    <span class="help-inline" node-type="span-nick-name"></span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="input01">Old Password</label>
                <div class="controls">
                    <input type="password" class="input-xlarge" id="input01" value="" name="old_pass" />
                    <span class="help-inline" node-type="span-old-pass" style="display: none" v="">old-pass</span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="input01">New Password</label>
                <div class="controls">
                    <input type="password" class="input-xlarge" id="input01" value="" name="password" />
                    <span class="help-inline" node-type="span-password" style="display: none"></span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="input01">Repeat New Password</label>
                <div class="controls">
                    <input type="password" class="input-xlarge" id="input01" value="" name="repeat_pass"/>
                    <span class="help-inline" node-type="span-repeat-pass" style="display: none"></span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="input01">Email</label>
                <div class="controls">
                    <input type="text" class="input-xlarge" id="input01" value="{$info.email}" name="email" />
                    <span class="help-inline" node-type="span-email" style="display: none"></span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="input01">School</label>
                <div class="controls">
                    <input type="text" class="input-xlarge" id="input01" value="{$info.school}" name="school" />
                </div>
            </div>
            <div class="form-actions">
                <button type="submit" class="btn btn-primary" id="edit_submit">Save</button>
                <button class="btn" onclick="javascript:history.go(-1);">Cancel</button>
            </div>
        </fieldset>
    </form>
</div>
<!-- MAIN CONTENT -->
<include file="Public:footer" />